/* $Id: AttachmentTypeDomainObjectManagerImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.domain.manager.provider;

import java.util.Collection;
import java.util.List;

import ae.pcfc.etks.online.common.dao.AttachmentTypeDAO;
import ae.pcfc.etks.online.common.domain.AttachmentType;
import ae.pcfc.etks.online.common.domain.manager.AttachmentTypeDomainObjectManager;
import ae.pcfc.etks.online.common.exception.LookupException;
import ae.pcfc.etks.online.common.exception.PersistenceException;

public class AttachmentTypeDomainObjectManagerImpl implements AttachmentTypeDomainObjectManager{
	
	
	private AttachmentTypeDAO attachmentTypeDAO;
		
	public void setAttachmentTypeDAO(AttachmentTypeDAO attachmentTypeDAO) {
		this.attachmentTypeDAO = attachmentTypeDAO;
	}
	
	public <T> void add(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		
	}

	public <T> void update(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		
	}

	public <T> void delete(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		
	}

	public <T> T findByPrimaryKey(String id) throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	public <T> Collection<T> findAll() throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * Description:
	 * getAttachmentType:	Method to get supporting documents required based on the user type (Company/Person)
	 * This method acquires the AttachmentType domain objects from the attachmentTypeDAO.
	 * @param	strAttachmentTypeUser String
	 * @return	- List<AttachmentType> - returns a list of AttachmentType
	 */	
	public List<AttachmentType> getAttachmentType(String strAttachmentTypeUser){
		return attachmentTypeDAO.getAttachmentType(strAttachmentTypeUser);
	}
	/**
	 * Description:
	 * getAttachmentTypeByAttachmentCode:	Method to get supporting documents required based on the attachment Code
	 * This method acquires the AttachmentType domain objects from the attachmentTypeDAO.
	 * @param	strAttachmentTypeUser String
	 * @return	AttachmentType
	 */	
	public AttachmentType getAttachmentTypeByAttachmentCode(
			String attachmentCode) {
		return attachmentTypeDAO.getAttachmentTypeByAttachmentCode(attachmentCode);
	}

}
